<?php
namespace Modules\Good\Requests;

use Illuminate\Foundation\Http\FormRequest;

class SlideRequest extends FormRequest{
    // public function authorize(){return true;}
    public function rules(){
        return [
            'title' => 'required|max:255',
            'img' => 'required|max:255',
        ];
    }
    public function messages(){
        return [
            'title.required' => '标题不能为空',
            'img.required' => '图片不能为空',
        ];
    }
}
